Avoid flickering loading pages when switching between menu entries