Refactored code and fixed bug with not opening product in BasketWindow.