Added AJAX to add cart and flash message