add logic for where the titles appear