fix bugs for chrome, add sorting (reordering), window between layers, text