edit item type functionality, edit item fix