fix format of text elements on pageload