added mail and checkout functionality