added redirect for edit action