added template for next, previous buttons