first connect of gui and engine