Made history gui a little more robust