changed syntax check button state at start