edit for event added not working