updates width and background