text resizing enabled and some legacy code removed