added spinner for loading data