Moved text resizing functionality