modified the add item feature