added auto-save to post editing