Made isOpen computed

Simply changed dialogCount to be ko.observable and updated all instances of dialogCount, then wrapped the isOpen function with ko.computed.
Fix Issue #531: Made dialog.isOpen computed