added onclick for main calendar