refactored refreshmaps users and events