changed code so that event details are visible