add all click logic to controller