moved code into partials of home page