modify swapview