added front-end functionality for adding events to calendar