Replcaing the bind function with click