Tidied up, added styles, auto-resize labels if they are too big for the topbar