added color change capability to bar