Changed model click function