Improve loading js and css in admin

make the CSS appear only when it's necessary and remove style from HTML