submits text with the right id so that it is saved in database