click functionality fixed