now binding event listeners to the correct context