Adding buggy code, Populated the list in the textbox, but not working properly