code added for tableview with data binding