Updated conditional for greyed-out buttons