move template hover attribute to each page