added new item functionality