Dialog

You don't need to use an object with id property here, do you? Won't it work if you just use the id string by itself?