added directive for dynamic input fields