Working dynamic loading page in main activity