Move logic for selecting event by ID to view