Add event listeners to views