adding table to view