updating for displaying response