Fixed ui related files memory wastes