formatted main activity