Fix 'add event' on calendar page not working