worked on pretty print. believed to solve the issue with the window's title not being updated immediately.