editor mostly implemented!