calendar code fixes

added functionality to be able to add new event by double clicking on a
date