moving controler to html tag to access lang attribute