change template content display into middle