adding right routes in both modes