I would register a listener on the click and handle it on the controller.