remove unnecessary data assignment
get cart badge updating through ajax

and improve it on the whole