added title stack things for handling xterm title