Pagination Issues when loading table dynamically on drop down select

I’m creating two dynamic tables based on the drop-down select value. First table has two pages and second one has only one. When I navigate to second page in first table and then when I change the drop down value its not showing the second table. I was able to see it when i open first page and then the next dropdown. Can you guys help me out here? Seems page number is not getting flushed out when i change drop down value.