add event function

Add event function added in sidebar