Updated displaying of elements for logged in and logged out users.