State machine seems to work now when the user presses enter in the line edit widget