Fix bad response type (json) in edit and new overrided functions