Reformat the main activity