get_clicks and clicks helper refactored