added monthly and sorting to retrieveEvents