update to resize functionality