Implementation of navigation for dynamic number of words