Change layout file of main activity to use method other than fragments.