fix the conflicts between scrollview and gridview