Adding controllerlistener