Updated router to use onStop instead of unload