Stabilized the pagination for addEvent.php. Revised the sort menu to detect if there is a url query or not