implement text displaying