Added functionality to calendar button