pass response from controller
remove trailing space