dropdown still works even after sorting table