Fixed some host history logic and added functionality to arrange windows using hotkeys