formatting main page