added view logic for non-users