Refactor the view using partial