properly sets root of the app