generate input id attribute based on modelName