fleshing out the editor functionality