implement add action with local storage