functions + editor styles