Updated to send htmlResponse