set loading to false