Refactoring

Done cart functionality client side