item add/edit functions working