added center to change on resize