Made some fixes to InteractiveDisplay. Also made the program exit on closing the window.