making enable and disable list dynamic