put in a guard to keep the user from deleting a generator when no row is selected