refactor create event method
refactor calendars loading
partial refactor of save calendar function
refactor update calendar