Change data.callback to data.onRequest