moved content to a function
moving main div container
moved nav to header
added condition for the index page