Remove global DOM manipulation from controller