Changing data param to payload