redirect on edit and delete not quite working