cleaned up, putting MainFragment as it's own file, removed some redundant code