Created helper function for click event
Merge pull request #5 from MickdeGraaf/dev

Created helper function for click event