refactoring new event / detailview
Refactoring