added router file and functionality