added redirect to edit view