fixed some small css and js bugs