refactor the pages to access the basket dialog / fix the delete of trainer at basket dialog