dynamic loading pages and creating navigation