add history to prompt