simplify button logic