refactoring, read from location.hash on the editor