Fixed scan setInterval problem. Fixed potential memory leaks with sub views.