number input directive now chains its functions