implemented viewpager for roots