finish the function of gridview and listviet