Added partial for DRY purposes to edit and new files