create spinner and loader view