Refactored code. The setStatusItemColor method now makes it easier to use the statusBarItem