custom css, and fixing loadPage method