added calendar functionality