added loadingspinner to views ref #336