processpage cleanup on get templates method