some dom and css improvments