debug video controller and moving root page logic into  pages controller