buttons working but events not