Add partial to refactor new and edit view
Delete duplicated code and add partial fields to refactor new and edit view