added completion to txt window
uncommented setup calls in resize event