calendar click handling directive