added first folding attempt, fixed editor content set after timeout problem