add edit function and delete unwanted items