comments and XHR function modification