remove checkout functin based view clean up some other code