add show_response function - partial refactor