sm delete dialog added.

dialog manager, made sure dialog without elements is posible.(will redo this in future. damn mess now)