refactoring to handle arbitrary controls

adding avg and stddev control views