rearragned overview to fix getWidth bug