Updated helper method window size var