rewrote tableview to add dropdown as well as selection