Refactor add ammount into separate directive