second commit: added event to button pressed event