Refactor in partial_view