Moved MainFragment into a separate file.