implement add item and clear items