add table and finish front end