Added a spinner to the router and a loading template