Added router and handle loading and unloading of views on route change.