fixed to show mask if needed only when loading first page