Refactoring plugins to share code

- modified Pick and Histogram plugins so that each has a base class to
    share code between the two widget set versions