added history and history scrolling with [ and ]