resize functionality and style.