Fixed spinner and xml loading check