fixing some routing issues and timed events refresh

moving ajax call to the route events fxn