Made renderOnAvailablePromise being rejected when widget is destroyed before node in the dom
updated css