Added checkout function to item_details
Optimized import