dynamically added inputs wasnt working