add loading indicator on layout base