Added button pressed event