fix greyed out buttons