added orders and fixed ajax functionality in cart