Finally layer loading and switch working