added object dialog + bug minor bug fix in deleteObject