fixed robustness of add/remove of EDIT querystring