Move mods from a global variable to the view itself