move uri attribution code to Application
missing semicolon in Controller