Fix spinner issue and background creation issue