css and javascript bug fixes