fix pop directive
refine next button on distance