modified calendar page settings and took functions off scope.