Added event listener to button