Refactor find_prev/find_next menu driver functions