fixed history settings and allow for multiple terminal windows