fixed calling edit url directly