make the template form centered on screen