added new feature: functions on click on icon