reformatting whole view template