set window width and title, fix non-distributed blank space