move template
next and prev