added basic editor functionality