conditional logic in events_controller and testing index view