make layout safe for logged out users