fixing something small in model click function