formatting main layout