selects and deselects class on button