added logic to event show page