dom fix and some css-ing