formatting main application page