logic for if only one button