adding basket visualization function