using hash mode istead html5 mode