fix checkout view code