change js_css_header to data directory and fixing paging and so on