add to list functionality works