updating mind and max width refs