main page layout implemetation