add console log and proper click handler