fixing ajax error, the db request wasn't finishing before the page was rendering. also fixed which events display at the start