add new function to implement move or copy page