added auto on resize