add event listener for controller