refactor index view sections out to partials
refactor application layout and use resource helpers