Some refactoring of code, editable block clear on page load