implementing NProgress for all route transitions