Refactor code to partials, add title controller