Add previous button; save input to localstorage