Adding functionality to add item