Modified the sample apps to enable/disable buttons on events rather than on promises resolution.