add object via dialog and show it