settle the memory leak and arrange the height of cell