move loading of treegrid before location