new solution to table dropdown