Made isOpen computed

Simply changed dialogCount to be ko.observable and updated all instances of dialogCount, then wrapped the isOpen function with ko.computed.