add regex to router, add history template