toggling a red square when a button is pressed