propper functionality for adding items