move routes inside register