Get data to be passed correctly on add click