fixing new file redirect to edit
update model on save