refactoring background into own method and fix a bug related to it
fix several small issues with textmargins and widths