click events are now working nicely