refactor defined height and width for window