add notifications and hide preview to avoid FOUC