remember user's previous inputs