fixed overflowButton logic