added redirect for edit with no param