fixed bug where clicking switches appearance every time