added router detect in app widget