allow clicks add controller function