reordered routes to prevent errors on routing pages