Rename function to resizeLayout()