adding listener to calendar button