working on histogram with controls