Added event listeners to drawarea.