abstracted the statusbars and fixed a few rendering bugs in them