refactored code to allow multiple sentences on display at once