refactor to servletdom, add new functions, css etc.