refactored layout to be separate from homesindex