bug-fix: limit history to 5 and scrollable