changes to table structure and buttons added