Added methods to convert bicolor to hex string and fixes to refactor colorFromHexString from class method to instance method
handle if item selected requires color picker or textfield editor