Add UI support to new router.

This is to prepare next commits: change each plugin to make it fit the new architecture.