I have added this code in my index.ctp file, Here design has been broken when I am trying to add next and previous option. 

```
<div class="paginator">
    <nav>
        <ul class="pagination">
            <?= $this->Paginator->prev('< ' . __('previous')) ?>
            <?= $this->Paginator->numbers() ?>
            <?= $this->Paginator->next(__('next') . ' >') ?> 
        </ul>
    </nav>
        <p><?= $this->Paginator->counter() ?></p>
</div> 

```

Image looking like 

[![enter image description here](https://i.stack.imgur.com/HgoRK.png)](https://i.stack.imgur.com/HgoRK.png)

Here for 

```
<?= $this->Paginator->numbers() ?>

```

It have created an ul with class pagination, So I need to add prev and next list into this ul list, How can I do that? May any body help me please.