Status bars functions

Moved status bar stuff from displaycallback to own functions