refactored answer rendering