fix redirect after add/edit