Ajax loading with php breaks everything

Ajax loading with php breaks everything

I have a php page with a listview in it, with a search bar. I can access different content by passing a parameter in the url,  after the index.php, but the problem is when I have a link in my page to another option (so a link to index.php?action=other_action ) the Ajax loading breaks anything responsive in the page, the search, buttons...

The previous content is not removed so the new content is displayed but nothing is dynamic. Of course if I disable ajax loading everything is fine, but it's so much better with it.

Any ideas on how I can keep ajax loading and correctly update the content of my page ?