fetching the edit data and showing