adding press button event