reorganizing the view templates