added editor functionality