Optimized the btn status.