fixed : minor bugs on css and event model