fixed some css issues and js formatting