style: code cleanup
feat(router): allow not leaving when only params change

fix #1