fixed formButtons bug