solved loading spinner problems