save and restore the last typed url