added save button for selectedTable