onclick event to widgets