change sentence(s) to line(s), removed extra using, add min height and width of window