Removed unnecessary fragments and put everything in the MainActivity.