Added `onGo` and `onPopState`. For #2