refactored qty into a generic directive and added it to cart