updating the template so there is a constant border at the top and the bottom