working to make add event working