Adding a spinner to bootUsing function when loading pages of a resource - Filament