ADDED: Editor save function.
FIXED: some simple bugs with panels rendering