fix for orientation issue #709 for pill buttons