http://blog.brunoscopelliti.com/show-route-only-after-all-promises-are-resolved