creat and edit item