Revert "Revert "added click function""

This reverts commit ce29fd009ccb0884473f60d951f479cd9fa465be.