adding delete by frame functionality