Added event listeners to view