when event ends, users get kicked to home page

(also some small code cleanup)