template matching of next button