finish events and events detail view