added tableview delegate and datasource methods