css and dom fixes