add command and delete button implementation