creates three tables and save button