refactor the stylesheets and javascript options