added basic table funcitonality