changed the declaration of change button status function