Added a KO modal display and cleaned up some unused code