Removed redundant code.
Fixed saving new events multiple times in calendar