Refactored templates

improved cart modal functionality