Add clicked element as functions parameters