Simplified click function

Cleaner click function that will work better with AJAX-loaded content