fix and consolidate button class (color) logic

this now uses the same logic to get the button class and icon for job buttons as well as the hide/show job button and places that in a provider.

Also, fixed a few areas where I was returning the wrong color.