added functions to calendar and left view