--Fixing the edit bug..Passing instance to form on edit