*Update*
I have fixed the duplicate issue, but now i need to refresh the page everytime for the cart to update and show the product that was added to the cart. why is this? what do i need to trigger for the sidecart to update without page refresh. i guess it is some ajax function im not finding in the sidecart code.