Moved some reusable features to utils.py
Fixed editor.html