change delete  in order to avoid deletnig but hining it

state =0 or 1 or 2
visible, invisible and deleted