add command history for input