Added event listeners.