Disabling delete and add buttons when nothing is selected