Updated buttons display condition