added code for click handling of cal cells