implemented autosave for css editor