refactor to cart detail directive
refactor to searchbox directive
change to use directives