Add basic logic for add and delete row buttons