adjust css, remove unused js, autoselect theme