Move router to Root component
Fix error on going from chat to other page