fixing date type and number type doc input in controller