Working on the edit funct  not finished yet