set the parameter in modal (before append new one)