Switched Main Activity also to use fragments.