Added event listeners to all buttons