got the edit link to work properly with admin key