add controller and eventListener to controller