added product counter and some fixes in the popup window