added some more functionality to calendar