load content correctly to editor on switching note