views: move some layout to the application template