clicking on edit link gives error