Turn Off and On the frame via xml