Reduced flicker when closign a page