added mdi support. add item editor