disable edit/delete buttons if there is no selection