added history support for offline mode and calendar integration for events