fix bugs in loading css; adding compatible view