Fixed more patterns and store pattern and vapmode in url-hash