mod - use response object for rest.
fix - onClick ajax request to api