sets tableview delegate to self