added notes route and resolve promises in router