fixed item edit bugs and error alerts