added setCursor method for cursormodel