fixed bug with loosing the edit data on links klicked