- when switching between pages, loader is shown