add loadingLayout code