cursor positioning in model