set up the table and positioned all elements