spliting out keep and swap js functions and adding modal confirmations VID-262