more work on the editor scene. srated implementing little state machine