refactors event views