added class toggle to buttons