update window title
remove dead code