fixes bugs where events are not loading on correct pages; fixes bug where time is not saving