added filter to resize function so it will wait until user is done moving window