refactored events detail view controller