delete type working and removing on view