fix redirect keys for add and edit