addItem changes

Changed addItem functionality in order to prepare for using it in
upcoming local storage implementation