implemented editor functions