Added attachLWF and fixed memory leak in UIKit renderer