default layout and page clean up