added def checkout to store controler