UPDATED layout of button with ternary test.