set loading back to false