Duplicate item error displayed from views