handling referers while edit users