updates to support more than two values, conversion to arrays and adding support to drag selections