add the logic for no display elements