added a spinner for loading