Refactoring partials; moving methods to ApplicationController