added spinner for loading page