fix some mem leaks, recognize TV, translate and repaint to scroll view (not stable, many bugs exist also)